.class public Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;
.super Landroid/widget/VideoView;
.source "OrmmaPlayer.java"

# interfaces
.implements Landroid/media/MediaPlayer$OnCompletionListener;
.implements Landroid/media/MediaPlayer$OnErrorListener;
.implements Landroid/media/MediaPlayer$OnPreparedListener;


# static fields
.field private static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final TAG:Ljava/lang/String; = "Ormma Player"

.field private static final TRANSIENT_TEXT:Ljava/lang/String; = "Loading. Please Wait.."


# instance fields
.field private mContentURL:Ljava/lang/String;

.field private mIsReleased:Z

.field private mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

.field private mManager:Landroid/media/AudioManager;

.field private mMutedVolume:I

.field private mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

.field private mTransientLayout:Landroid/widget/RelativeLayout;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 38
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    .line 91
    invoke-direct {p0, p1}, Landroid/widget/VideoView;-><init>(Landroid/content/Context;)V

    .line 92
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "audio"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mManager:Landroid/media/AudioManager;

    .line 93
    return-void
.end method


# virtual methods
.method addTransientMessage()V
    .locals 6

    .prologue
    const/4 v5, -0x2

    .line 244
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isInline()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 259
    :goto_0
    return-void

    .line 247
    :cond_0
    new-instance v3, Landroid/widget/RelativeLayout;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mTransientLayout:Landroid/widget/RelativeLayout;

    .line 248
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mTransientLayout:Landroid/widget/RelativeLayout;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 250
    new-instance v2, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 251
    .local v2, transientView:Landroid/widget/TextView;
    const-string v3, "Loading. Please Wait.."

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 252
    const/4 v3, -0x1

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    .line 253
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 255
    .local v0, msgparams:Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v3, 0xd

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 256
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mTransientLayout:Landroid/widget/RelativeLayout;

    invoke-virtual {v3, v2, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 257
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 258
    .local v1, parent:Landroid/view/ViewGroup;
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mTransientLayout:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_0
.end method

.method clearTransientMessage()V
    .locals 2

    .prologue
    .line 265
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mTransientLayout:Landroid/widget/RelativeLayout;

    if-eqz v1, :cond_0

    .line 266
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 267
    .local v0, parent:Landroid/view/ViewGroup;
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mTransientLayout:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 269
    .end local v0           #parent:Landroid/view/ViewGroup;
    :cond_0
    return-void
.end method

.method displayControl()V
    .locals 2

    .prologue
    .line 118
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isShowControl()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 119
    new-instance v0, Landroid/widget/MediaController;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/MediaController;-><init>(Landroid/content/Context;)V

    .line 120
    .local v0, ctrl:Landroid/widget/MediaController;
    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setMediaController(Landroid/widget/MediaController;)V

    .line 121
    invoke-virtual {v0, p0}, Landroid/widget/MediaController;->setAnchorView(Landroid/view/View;)V

    .line 123
    .end local v0           #ctrl:Landroid/widget/MediaController;
    :cond_0
    return-void
.end method

.method loadContent()V
    .locals 1

    .prologue
    .line 129
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mContentURL:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mContentURL:Ljava/lang/String;

    .line 130
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mContentURL:Ljava/lang/String;

    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaUtils;->convert(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mContentURL:Ljava/lang/String;

    .line 131
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mContentURL:Ljava/lang/String;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    if-eqz v0, :cond_0

    .line 132
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->removeView()V

    .line 133
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    invoke-interface {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;->onError()V

    .line 139
    :goto_0
    return-void

    .line 136
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mContentURL:Ljava/lang/String;

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setVideoURI(Landroid/net/Uri;)V

    .line 137
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->displayControl()V

    .line 138
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->startContent()V

    goto :goto_0
.end method

.method public onCompletion(Landroid/media/MediaPlayer;)V
    .locals 1
    .parameter "mp"

    .prologue
    .line 185
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isDoLoop()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 186
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->start()V

    .line 191
    :cond_0
    :goto_0
    return-void

    .line 187
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->exitOnComplete()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isInline()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 189
    :cond_2
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->releasePlayer()V

    goto :goto_0
.end method

.method public onError(Landroid/media/MediaPlayer;II)Z
    .locals 6
    .parameter "mediaPlayer"
    .parameter "what"
    .parameter "extra"

    .prologue
    const/4 v5, 0x0

    .line 195
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Ormma Player"

    const-string v2, "Player error : {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v5

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 196
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->clearTransientMessage()V

    .line 197
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->removeView()V

    .line 198
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    if-eqz v0, :cond_0

    .line 199
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    invoke-interface {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;->onError()V

    .line 201
    :cond_0
    return v5
.end method

.method public onPrepared(Landroid/media/MediaPlayer;)V
    .locals 1
    .parameter "mp"

    .prologue
    .line 206
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->clearTransientMessage()V

    .line 207
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    if-eqz v0, :cond_0

    .line 208
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    invoke-interface {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;->onPrepared()V

    .line 210
    :cond_0
    return-void
.end method

.method public playAudio()V
    .locals 0

    .prologue
    .line 111
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->loadContent()V

    .line 112
    return-void
.end method

.method public playVideo()V
    .locals 4

    .prologue
    const/4 v3, 0x3

    .line 160
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isAudioMuted()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 161
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mManager:Landroid/media/AudioManager;

    invoke-virtual {v0, v3}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v0

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mMutedVolume:I

    .line 162
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mManager:Landroid/media/AudioManager;

    const/4 v1, 0x0

    const/4 v2, 0x4

    invoke-virtual {v0, v3, v1, v2}, Landroid/media/AudioManager;->setStreamVolume(III)V

    .line 164
    :cond_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->loadContent()V

    .line 165
    return-void
.end method

.method public releasePlayer()V
    .locals 1

    .prologue
    .line 226
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mIsReleased:Z

    if-eqz v0, :cond_1

    .line 238
    :cond_0
    :goto_0
    return-void

    .line 229
    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mIsReleased:Z

    .line 230
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->stopPlayback()V

    .line 231
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->removeView()V

    .line 232
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isAudioMuted()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 233
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->unMute()V

    .line 235
    :cond_2
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    if-eqz v0, :cond_0

    .line 236
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    invoke-interface {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;->onComplete()V

    goto :goto_0
.end method

.method removeView()V
    .locals 1

    .prologue
    .line 216
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 217
    .local v0, parent:Landroid/view/ViewGroup;
    if-eqz v0, :cond_0

    .line 218
    invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 220
    :cond_0
    return-void
.end method

.method public setListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;)V
    .locals 0
    .parameter "listener"

    .prologue
    .line 180
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;

    .line 181
    return-void
.end method

.method public setPlayData(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;Ljava/lang/String;)V
    .locals 1
    .parameter "properties"
    .parameter "url"

    .prologue
    .line 102
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mIsReleased:Z

    .line 103
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    .line 104
    iput-object p2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mContentURL:Ljava/lang/String;

    .line 105
    return-void
.end method

.method startContent()V
    .locals 1

    .prologue
    .line 145
    invoke-virtual {p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 146
    invoke-virtual {p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 147
    invoke-virtual {p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    .line 148
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isInline()Z

    move-result v0

    if-nez v0, :cond_0

    .line 149
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->addTransientMessage()V

    .line 151
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mPlayProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isAutoPlay()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 152
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->start()V

    .line 154
    :cond_1
    return-void
.end method

.method unMute()V
    .locals 4

    .prologue
    .line 171
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mManager:Landroid/media/AudioManager;

    const/4 v1, 0x3

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->mMutedVolume:I

    const/4 v3, 0x4

    invoke-virtual {v0, v1, v2, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V

    .line 172
    return-void
.end method
